﻿using System;
using Aspose.Words;

namespace FileRead
{
    public class WordHelp
    {
        /// <summary>
        /// 读取所有文本
        /// </summary>
        /// <param name="filePath"></param>
        /// <returns></returns>
        public static string ReadAllText(string filePath)
        {
            Document doc = new Document(filePath);
            return doc.GetText();
        }
    }
}